package com.google.code.sprite.generate;

import com.google.code.sprite.util.Util;

public class ColumnMetaData {

    private String tableName; 
    private String tableScheme;
    private String columnName;
    private int dataType;
    private String typeName;
    private int columnSize;
    private boolean nullable;


    public String normalizedName() {
        return Util.normalize(this.columnName);
    }
    public String getJavaType() {
        return Util.getJavaType(this.dataType);
    }

    public void setTableName(String tableName) {
        this.tableName=tableName;
    }
    public String getTableName() {
        return this.tableName;
    }


    public void setTableScheme(String tableScheme) {
        this.tableScheme=tableScheme;
    }
    public String getTableScheme() {
        return this.tableScheme;
    }


    public void setColumnName(String columnName) {
        this.columnName=columnName;
    }
    public String getColumnName() {
        return this.columnName;
    }


    public void setDataType(int dataType) {
        this.dataType=dataType;
    }
    public int getDataType() {
        return this.dataType;
    }


    public void setTypeName(String typeName) {
        this.typeName=typeName;
    }
    public String getTypeName() {
        return this.typeName;
    }


    public void setColumnSize(int columnSize) {
        this.columnSize=columnSize;
    }
    public int getColumnSize() {
        return this.columnSize;
    }


    public void setNullable(boolean nullable) {
        this.nullable=nullable;
    }
    public boolean getNullable() {
        return this.nullable;
    }

}
